import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取防盗码信息
export const getSecurityCode = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode`, { params });

// 查重
export const getSecurityCodeByVin = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode/getSecurityCode`, { params });

// 新增防盗码信息
export const setSecurityCode = params => axios.post(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode`,  params );

// 修改防盗码信息
export const updateSecurityCode = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode`,  params );

// 导入
export const importSecurityCode = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode/importSecurityCode`,  params );
// 生成授权码
export const getAuthorizationCode = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/securityCode/getAuthorizationCode`, {params} );
